Skip to content

Instantly share code, notes, and snippets.

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@ozkatz
ozkatz / basha256.sh
Created June 29, 2026 22:35
A pure-bash implementation of sha256. Why? because we can.
#!/usr/bin/env bash
#
# basha256.sh - sha256 in pure Bash 3.2
#
# ./basha256.sh < bigfile.bin
#
# Everything below: the message schedule, the compression function and even
# reading the raw bytes off stdin is done with nothing but Bash builtins and arithmetic.
#
# TIL: Bash cannot store a NUL byte in a variable, so stdin is read in NUL-delimited chunks and the delimiters are re-inserted by hand.
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active June 29, 2026 23:24
Complete Recent Discord Quest

Caution

As of April 7th 2026, Discord has expressed their intent to crack down on automating quest completion.

Some users have received the following system message:

image

There isn't much I can do to make the script undetected, so use it at your own risk, as you most likely WILL get flagged by doing so.

Complete Recent Discord Quest

What are mixins?

Mixins are a way to inject code or change the minecraft source code directly and should be use with caution. If you can do a PR to Forge or use an event, try those first. If all else fails, then mixins may be a good option to look into. Here are some resources for mixins:

Now, I'll be honest, the official mixin doc is kind of terrible to learn from for most people. It's extremely dense and and really only helps people who already knows in-depth bytecode and stuff. But most modders aren't like that and just wants to do small stuff lol. But I'll give you the run-down here. There's a few kinds of mixins that you will encounter quite often.

@FuFicFac
FuFicFac / voice-skill-system.md
Created May 4, 2026 22:05
The Voice Skill System — The Nerdy Novelist Skills Series, Video 4

The Voice Skill System

From The Nerdy Novelist — Skills Series, Video 4

This is the full system from the video. Three parts, used in order:

  1. The Extraction Prompt — paste this into Claude with your prose samples to get a Voice Fingerprint
  2. The Voice Skill Template — use the fingerprint to fill this in and build your loadable Skill file
  3. The Calibration Test — a neutral prompt to confirm the Skill is working

@afeld
afeld / civictech.md
Last active June 29, 2026 23:22
civic tech jobs in NYC (or remote)
@masklinn
masklinn / cheatsheet.md
Last active June 29, 2026 23:18
launchctl/launchd cheat sheet

I've never had great understanding of launchctl but the deprecation of the old commands with launchctl 2 (10.10) has been terrible as all resources only cover the old commands, and documentation for Apple utilities is generally disgracefully bad, with launchctl not dissembling.

Mad props to https://babodee.wordpress.com/2016/04/09/launchctl-2-0-syntax/ which contains most details

domains

Internally, launchd has several domains, but launchctl 1 would only ask for service names,

@Adrastopoulos
Adrastopoulos / drift-detect.mjs
Last active June 29, 2026 23:15
GitHub Actions Atlantis drift detection reference
import { appendFileSync } from "node:fs";
const repo = process.env.GITHUB_REPOSITORY;
const ref = process.env.GITHUB_REF_NAME;
const res = await fetch(`${process.env.ATLANTIS_URL}/api/drift/detect`, {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Atlantis-Token": process.env.ATLANTIS_API_TOKEN,
@mex7xx
mex7xx / tmux-cheat-sheet.md
Created June 29, 2026 23:14 — forked from michaellihs/tmux-cheat-sheet.md
tmux Cheat Sheet